import axios from '@/api/interceptor';
import type { FriendLinkForm, FriendLinkQuery } from '@/api/links/types.ts';

export const applyFriendLink = async (data: any) => {
  const result = await axios({
    url: '/linksFront/applyLinks',
    method: 'POST',
    data
  });
  return result.data;
};

export const getFriendLinks = async () => {
  const result = await axios({
    url: '/linksFront/selectLinksList',
    method: 'GET'
  });
  return result.data;
};

